package com.cloud.adrian.novel.common.constant;

/**
 * Amqp相关常量
 * @Author: xiangguiliang
 * @version: 1.0
 * @since: 2024/05/15
 */
public class AmqpConstants {
    /**
     * 小说信息改变mq
     */
    public static class BookChange {
        /**
         * 小说信息改变交换机
         */
        public static final String EXCHANGE_NAME = "novel.exchange";

        /**
         * 小说新增
         */
        public static final String INSERT_QUEUE = "novel.insert.queue";

        /**
         * 小说更新
         */
        public static final String UPDATE_QUEUE = "novel.update.queue";

        /**
         * 小说删除队列
         */
        public static final String DELETE_QUEUE = "novel.delete.queue";

        /**
         * 小说新增路由键
         */
        public static final String INSERT_KEY = "novel.insert";

        /**
         * 小说更新、新增路由键
         */
        public static final String UPDATE_KEY = "novel.update";

        /**
         * 小说删除路由键
         */
        public static final String DELETE_KEY = "novel.delete";
    }
}
